#!/bin/bash

LD_LIBRARY_PATH=`pwd`/logger/Release
export LD_LIBRARY_PATH

for i in `seq $1`
do
	./tests/Release/tests fragmentation_test $2 &
done

read -p "Press enter... "

kill `ps aux | grep tests | head -n -1 | awk '{print $2}'`

echo "done"
